using System.ComponentModel.DataAnnotations;

namespace UniversalAdmin.Application.Dtos.Role;

/// <summary>
/// 批量为角色分配菜单权限DTO
/// </summary>
public class AssignMenusToRoleDto
{
    /// <summary>
    /// 菜单ID列表
    /// </summary>
    [Required(ErrorMessage = "菜单ID列表不能为空")]
    [MinLength(1, ErrorMessage = "至少要分配一个菜单权限")]
    public List<Guid> MenuIds { get; set; } = new();

    /// <summary>
    /// 是否覆盖现有权限（true: 覆盖，false: 追加）
    /// </summary>
    public bool IsOverride { get; set; } = false;
}
